from typing import AnyStr
from createDataByInsert.otherClass.catchRequest import easyRequest
from requests import Session
from utils.common_dcc import response_time


def easyReq(urlHead,uri:AnyStr,data,session:Session,method,*args,bodyType="str",uriType="dict"):
    resDic,res=easyRequest(urlHead,uri,data,session,method,*args,bodyType=bodyType,uriType=uriType)
    response_time(uri, res)
    return  resDic,res